home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 2.iso / STUTTGART / UTIL / SCREEN / CURSES01 / minix / c / mvcursor < prev    next >
Text File  |  1991-05-05  |  1KB  |  38 lines

  1. /****************************************************************/
  2. /* Mvcur() routine of the PCcurses package            */
  3. /*                                */
  4. /****************************************************************/
  5. /* This version of curses is based on ncurses, a curses version    */
  6. /* originally written by Pavel Curtis at Cornell University.    */
  7. /* I have made substantial changes to make it run on IBM PC's,    */
  8. /* and therefore consider myself free to make it public domain.    */
  9. /*        Bjorn Larsson (...mcvax!enea!infovax!bl)    */
  10. /****************************************************************/
  11. /* 1.0:    Release:                    870515    */
  12. /****************************************************************/
  13. /* Modified to run under the MINIX operating system by Don Cope */
  14. /* These changes are also released into the public domain.      */
  15. /*                             900906  */
  16. /****************************************************************/
  17.  
  18. #include <curses.h>
  19. #include "curspriv.h"
  20.  
  21. /****************************************************************/
  22. /* Mvcur(oldy,oldx,newy,newx) the display cursor to <newy,newx>    */
  23. /****************************************************************/
  24.  
  25. int    mvcur(oldy,oldx,newy,newx)
  26.   int oldy;
  27.   int oldx;
  28.   int newy;
  29.   int newx;
  30.   {
  31.   if ((newy >= LINES) || (newx >= COLS) || (newy < 0) || (newx < 0))
  32.     return(ERR);
  33.   _cursescursor(0,newy,newx);
  34.   _cursvar.cursrow = newy;
  35.   _cursvar.curscol = newx;
  36.   return(OK);
  37.   } /* mvcur */
  38.